<!DOCTYPE html>
<html lang="en">
oss.endpoint=wan=nt=wangzheng1996.oss-cn-shanghai.aliyuncs.com
oss
om
oss.accessKeyId=LId=LTAII5jRBBNopeGX
GX
oss.accessKeySecrSecret=rJNnG4J9q4EYRqW5FKinvi5pi2pQ1r
1r
oss.bucketName=wae=wangzheng1996
96
oss.roleArn=acs=acs:ram::1397397198845359:role/aliyunosstokengeneratorrole
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>新建商品</title>
		<link rel="stylesheet" href="../../css/base.css" />
		<link rel="stylesheet" href="../../css/common.css" />
		<link href="../../sbadmin/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="../../js/ueditor/ueditor.config.js"></script>
		<script type="text/javascript" src="../../js/ueditor/ueditor.all.js"></script>
		<script type="text/javascript" src="../../js/ueditor/lang/zh-cn/zh-cn.js" ></script>
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
		<style>
			body {
				padding: 0 15px !important;
			}
		</style>
	</head>

	<body style="background:#FFF;">
		<div class="comm-tt-font pr">
			出售商品 > 新建商品
		</div>
		<div class="shop-detail-box pr">
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>封面图：</div>
				<div class="ad-form-itemcc fl">
					<img src="../../img/test2.jpg" class="adf-img">
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>商品图片：</div>
				<div class="wod-form-itemcc fl">
					<div class="sale-detailimg2">
						<img src="../../img/test2.jpg">
					</div>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>商品编号：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>商品名：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>售价：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>指导价：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"><em>*</em>拍摄次数：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">拍摄张数：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">精修张数：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">服装数量：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">场景数量：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">相册：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">摄影师：</div>
				<div class="wod-form-itemcc fl">
					<select class="eic-select" style="width: 200px;"></select>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">有效期：</div>
				<div class="wod-form-itemcc fl">
					<input type="text" class="edit-input" />
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">出售门店：</div>
				<div class="wod-form-itemcc fl">
					<select class="eic-select" style="width: 200px;"></select>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">可使用门店：</div>
				<div class="wod-form-itemcc fl">
					<select class="eic-select" style="width: 200px;"></select>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">是否上架：</div>
				<div class="wod-form-itemcc fl">
					<select class="eic-select" style="width: 200px;"></select>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">特别说明：</div>
				<div class="wod-form-itemcc fl">
					<textarea class="ed-textarea"></textarea>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl" id="spsss">商品详情：</div>
				<div class="wod-form-itemcc fl" style="width: 1000px;">
					<!--<textarea class="ed-textarea" id="contentVal"></textarea>-->
					<script id="editor" type="text/plain"></script>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">备注：</div>
				<div class="wod-form-itemcc fl">
					<textarea class="ed-textarea"></textarea>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl">温馨提示：</div>
				<div class="wod-form-itemcc fl">
					<textarea class="ed-textarea"></textarea>
				</div>
			</div>
			<div class="wo-form-item clb mt20">
				<div class="ad-form-itemtt fl"></div>
				<div class="wod-form-itemcc fl">
					<div class="clb mt20">
						<a href="#" class="fl commqx-btn">取消</a>
						<a href="#" class="fl commqr-btn ml15">确定</a>
					</div>
				</div>
			</div>

		</div>

		<!-- jQuery -->
		<script src="../../sbadmin/bower_components/jquery/dist/jquery.min.js"></script>
		<!-- Bootstrap Core JavaScript -->
		<script src="../../sbadmin/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
		<!-- Metis Menu Plugin JavaScript -->
		<script src="../../sbadmin/bower_components/metisMenu/dist/metisMenu.min.js"></script>
		<!-- DataTables JavaScript -->
		<script src="../../sbadmin/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
		<script src="../../sbadmin/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
		<!-- Custom Theme JavaScript -->
		<script src="../../sbadmin/dist/js/sb-admin-2.js"></script>
		<!-- Page-Level Demo Scripts - Tables - Use for reference -->
	</body>
	<script type="text/javascript">
		alert("1111")
		//实例化编辑器
		//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
		var ue = UE.getEditor('editor');
		// ue.addListener('ready', function(ue) {
		// 	ue.hide();
		// });
		
		
		$("#spsss").click(function(){
			alert(ue.getContent())
		})
		
		
		
		function isFocus(e) {
			alert(UE.getEditor('editor').isFocus());
			UE.dom.domUtils.preventDefault(e)
		}

		function setblur(e) {
			UE.getEditor('editor').blur();
			UE.dom.domUtils.preventDefault(e)
		}

		function insertHtml() {
			var value = prompt('插入html代码', '');
			UE.getEditor('editor').execCommand('insertHtml', value)
		}

		function createEditor() {
			enableBtn();
			UE.getEditor('editor');
		}

		function getAllHtml() {
			alert(UE.getEditor('editor').getAllHtml())
		}

		function getContent() {
			var arr = [];
			arr.push("使用editor.getContent()方法可以获得编辑器的内容");
			arr.push("内容为：");
			arr.push(UE.getEditor('editor').getContent());
			alert(arr.join("\n"));
		}

		function getPlainTxt() {
			var arr = [];
			arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
			arr.push("内容为：");
			arr.push(UE.getEditor('editor').getPlainTxt());
			alert(arr.join('\n'))
		}

		function setContent(isAppendTo) {
			var arr = [];
			arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
			UE.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
			alert(arr.join("\n"));
		}

		function setDisabled() {
			UE.getEditor('editor').setDisabled('fullscreen');
			disableBtn("enable");
		}

		function setEnabled() {
			UE.getEditor('editor').setEnabled();
			enableBtn();
		}

		function getText() {
			//当你点击按钮时编辑区域已经失去了焦点，如果直接用getText将不会得到内容，所以要在选回来，然后取得内容
			var range = UE.getEditor('editor').selection.getRange();
			range.select();
			var txt = UE.getEditor('editor').selection.getText();
			alert(txt)
		}

		function getContentTxt() {
			var arr = [];
			arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
			arr.push("编辑器的纯文本内容为：");
			arr.push(UE.getEditor('editor').getContentTxt());
			alert(arr.join("\n"));
		}
		

		function hasContent() {
			var arr = [];
			arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
			arr.push("判断结果为：");
			arr.push(UE.getEditor('editor').hasContents());
			alert(arr.join("\n"));
		}

		function setFocus() {
			UE.getEditor('editor').focus();
		}

		function deleteEditor() {
			disableBtn();
			UE.getEditor('editor').destroy();
		}

		function disableBtn(str) {
			var div = document.getElementById('btns');
			var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
			for(var i = 0, btn; btn = btns[i++];) {
				if(btn.id == str) {
					UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
				} else {
					btn.setAttribute("disabled", "true");
				}
			}
		}

		function enableBtn() {
			var div = document.getElementById('btns');
			var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
			for(var i = 0, btn; btn = btns[i++];) {
				UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
			}
		}

		function getLocalData() {
			alert(UE.getEditor('editor').execCommand("getlocaldata"));
		}

		function clearLocalData() {
			UE.getEditor('editor').execCommand("clearlocaldata");
			alert("已清空草稿箱")
		}
	</script>

</html>